# print(list('cat'))
# a_tuple = ('ready','fire','aim')
# print(list(a_tuple))
#
# birthday = '1989/12/03'
# print(birthday.split('/'))

# marxes = ['groucho','chico','harpo']
# sorted_marxes = sorted(marxes)
# print(sorted_marxes)
# print(len(marxes))



# print(','.join(marxes))
# print(marxes.count('groucho'))

# print('asd' in marxes )
# print(marxes.index('chico'))

# print(marxes.pop(1))


# marxes.remove('groucho')
# print(marxes)


# print(marxes[::2])
# marxes.append('zeppo')
# print(marxes)
# others = ['gummo','karl']
# marxes.extend(others)
# marxes += others
# print(marxes)

# marxes.insert(1,'test')
# print(marxes)
#
# marxes.insert(10,'karl')
# print(marxes)
#
# del marxes[-1]
# print(marxes)
# del marxes[1]
# print(marxes)

# a = [1,2,3]
# b = a.copy()
# c = list(b)
# d = a[:]
# a[0] = 'change'
#
# print(a,b,c,d)


# print(a)
# b = a
# print(b)
# a[0] = 'surprise'
# print(a)
# print(b)

# one_marx = 'groucho',
# print(one_marx)
# marx_tuple = 'Groucho', 'Chico', 'Harpo'
# print(marx_tuple)

# marx_tuple = ('Groucho', 'Chico', 'Harpo')
# a,b,c = marx_tuple
# print(a,b,c)
#
# marx_list = ['Groucho', 'Chico', 'Harpo']
# print(tuple(marx_list))

# lol = [['a','b'],['c','d'],['e','f']]
# print(dict(lol))

# pythons = {
#     'chapman' : 'graham',
#     'cleese' : 'john',
#     'gilliam':'terry'
# }
#
# others = {
#     'marx' : 'groucho',
#     'howard' : 'moe'
# }

# print(list(pythons.items()))

# pythons.update(others)
#
# del pythons['marx']
#
# pythons.clear()
#
# print(pythons)

# print(pythons.get('chapman'))
# print(list(pythons.keys()))

# print(list(pythons.values()))


# empty_set = set()
# print(empty_set)
#
# even_numbers = {0, 2, 4, 6, 8}
# print(even_numbers)
#
# even_numbers = {1,3,4,5}
# print(even_numbers)


# print(set(['Dasher', 'Dancer', 'Prancer', 'Mason-Dixon','Dasher'] ))

# print(set({'apple': 'red', 'orange': 'orange', 'cherry': 'red'}))

# drinks = {
#     'martini': {'vodka', 'vermouth'},
#     'black russian': {'vodka', 'kahlua'},
#     'white russian': {'cream', 'kahlua', 'vodka'},
#     'manhattan': {'rye', 'vermouth', 'bitters'},
#     'screwdriver': {'orange juice', 'vodka'}
# }
#
# bruss = drinks['black russian']
# wruss = drinks['white russian']
# a = {1,2}
# b = {2,3}
# print(a & b)
# print(a.intersection(b))
#
# print(bruss&wruss)
#
# print(a|b)
# print(a.union(b))
# print(bruss|wruss)
#
# print(b - a)
# print(a.difference(b))
# print(bruss - wruss)
#
# print(a<=a)
# print(a.issubset(a))





# print(drinks.items())
# for name,contents in drinks.items():
#     if 'vodka' in contents and not ('vermouth' in contents or  'cream' in contents):
#         print(name)

# for name,contents in drinks.items():
    # if contents & {'vermouth','orange juice'} :
    #     print(name)
    # if 'vodka' in contents and not contents & {'vermouth','orange juice'} :
        # print(name)

# marxes = ['groucho','chico','harpo']
# pythons = ['Chapman', 'Cleese', 'Gilliam', 'Jones', 'Palin']
# stooges = ['Moe', 'Curly', 'Larry']
# tuple_of_lists = marxes,pythons,stooges
# print(tuple_of_lists)
#
# list_of_list = [marxes , pythons ,stooges]
# print(list_of_list)
#
# dict_of_list = {
#     'marxes' : marxes ,
#     'pythons' : pythons ,
#     'stooges' : stooges
# }
# print(dict_of_list)

# 1
# year_list = [1980,1981,1982,1983,1985,1985]
# 2
# print(year_list[3])
# 3
# print(max(year_list))
# 4
# things = ['mozzarella','cinderella','salmonella']
# things[0] = things[0].capitalize()
# things[0] = things[0].upper()
# print(things)

#7
# del things[2]
# things.remove('salmonella')


#8
# surprise = ['Groucho','Chico','Harpo']
#
# surprise[2] = surprise[2].lower()
# surprise[2] = surprise[2][::-1]
# surprise[2] = surprise[2].capitalize()
# print(surprise)

# e2f = {
#     'dog':'chien',
#     'cat':'chat',
#     'walrus':'morse'
# }
#
# f2e  = {}
# for english,french in e2f.items():
#     f2e[french] = english
# print(f2e)
#
# print(f2e['chien'])

# print(set(e2f.keys()))

life = {
    'animals' : {
        'cats' :['Henri','Grumpy','Lucy'],
        'octopi':{},
        'emus':{}
    },
    'plants':{},
    'other':{}
}

print(list(life.keys()))

print(list(life['animals'].keys()))

print(life['animals']['cats'])
















